var express = require('express');
var router = express.Router();
var format = require('../utils/format.js')

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

router.get('/c', function(req, res, next) {
    // res.status(200).json(format.timestamp())
    // res.status(200).json(format.dateYmd(1380310660000))
    res.status(200).json(format.dateYmdhms(1380310660000))
});

module.exports = router;
